package com.shortvedio.base.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@TableName("s_user_info")  //用户信息表
public class SUserInfo implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;  //用户id
    private String name;  //真实姓名
    private Integer age; //年龄
    private String city;  //现居城市
    private String university;   //学习
    private String description;    //自我描述
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")      // 表示接收时间类型
    private LocalDate birthDay;
    private String headSrc;
}
